package com.example.mapper;

import com.example.entity.shop.DamageReport;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;



@Mapper
public interface DamageReportMapper {
    void insert(DamageReport damageReport);
    void updateById(DamageReport damageReport);
    DamageReport selectById(Integer id);
    void deleteById(Integer id);
    List<DamageReport> selectAll();

    List<DamageReport> selectAssociation(DamageReport damageReport);

    // 近七天损失量统计
    DamageReport damageReportCount(int productId);

    List<DamageReport> selectByIds(List<Integer> ids);
}
